﻿namespace SIG.Model.Ads
{
    using Core;
    using Resources.Admin;

    public partial class Carousel : AuditableEntity<int>
    {
        public Carousel(){
            this.EntityName = EntityNames.Carousel;
        }
      
        public string Title { get; set; }    
        public string ImageUrl { get; set; }
        public string ImageUrlMobile { get; set; }
        public int Importance { get; set; }     
        public string WebLink { get; set; }
        public string Description { get; set; }   
        public bool Active { get; set; }
        public int PositionId { get; set; }
        public Position Position { get; set; }
        public string PositionTitle
        {
            get
            {
                if (this.Position != null)
                {
                    return $"[{Position.Code}] {Position.Title}";
                }
                return string.Empty;
            }
        }
    }
}
